<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
</head>

<body>
    <div id="app">
        <!-- 
            v-html
            v-text
        -->
            <h2>{{title}}</h2>
            <h2 v-text="title"></h2>
            <div v-html="both"></div>
    </div>
</body>
<script>
    let vm = new Vue({
        el: "#app",//选择器
        data: {
            //数据
            title:"我是title",
            both:"<h1>22号可以走</h1>"
        },
        methods: {
            //方法
        }
    })
</script>

</html>